package com.spring.factoryBean;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("facorybean.xml");
//		School p = (School) ctx.getBean("school");
//		System.out.println(p);
		
		School p2 = (School) ctx.getBean("school2");
		System.out.println(p2);
		
	}
}
